class AddStateDataToDatabase < ActiveRecord::Migration
  def self.up
    
    newState = StoryState.new
    newState.active = true;
    newState.name = "New";
    newState.save
    
    acceptedState = StoryState.new
    acceptedState.active = true;
    acceptedState.name = "Accepted";
    acceptedState.save
    
    finishedState = StoryState.new
    finishedState.active = true;
    finishedState.name = "Finished (needs testing)";
    finishedState.save
    
    completeState = StoryState.new
    completeState.active = true;
    completeState.name = "Complete (and tested)";
    completeState.save
    
    invalidState = StoryState.new
    invalidState.active = true;
    invalidState.name = "Invalid (see comments)";
    invalidState.save
    
  end

  def self.down
    
    StoryState.delete(:all)
    
  end
end
